package com.group7.mall.convert;

import com.group7.mall.dto.UserCartPreviewDto;
import com.group7.mall.entity.TbUserCart;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface CartConverter {

    CartConverter INSTANCE = Mappers.getMapper(CartConverter.class);

    List<UserCartPreviewDto> convertTbUserCartListToUserCartDtoList(List<TbUserCart> tbUserCartList);

}
